package com.example.demo.address.repository;

import com.example.demo.address.bean.AddressBean;
import com.example.demo.user.bean.UserBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AddressRepository extends JpaRepository<AddressBean,Long> {
    public List<AddressBean> getAllByUserBean(UserBean userBean);
}
